import navDownIcon from "../assets/icon/nav-down.png";

interface InfoProps {
    setOpen: (open: boolean) => void;
    title?: string;
    date?: string;
}

function Info({setOpen, title, date}: InfoProps) {
    return (
        <article className="content">
            <div className="star-description">
                <div className="star-sign" onClick={() => setOpen(true)}>
                    <div className="name">{title}</div>
                    <img width={20} height={20} src={navDownIcon} alt="navDownIcon"/>
                </div>
                <div className="date">{date}</div>
                {/*<div className="yiji">*/}
                {/*    <span>宜:{starSignInfo?.todo?.yi}</span>*/}
                {/*    <span>忌:{starSignInfo?.todo?.ji}</span>*/}
                {/*</div>*/}
            </div>
        </article>
    )
}

export default Info;